import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router';

import store from './store';
import getRoutes from './grants/router';

const app = createApp(App);

// vuex：做动态添加路由配置
if (sessionStorage.getItem("grants")) {
    getRoutes()
    store.commit({
        type: "setIsAddRoute",
        isAddRoute: true
    })
}

app.use(router);

app.mount('#app')
